<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="Generator" content="Trainercity v1.0" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Keywords" content="<?php echo $this->_var['keywords']; ?>" />
<meta name="Description" content="<?php echo $this->_var['description']; ?>" />
<title><?php echo $this->_var['page_title']; ?></title>
<link href="<?php echo $this->_var['ecs_css_path']; ?>" rel="stylesheet" type="text/css" />

<?php echo $this->smarty_insert_scripts(array('files'=>'common.js,user.js')); ?>
<script type="text/javascript">


  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-1848127-18']);
  _gaq.push(['_setDomainName', '.fitwow.com']);
  _gaq.push(['_trackPageview']);


  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();


</script></head>
<body>
<?php echo $this->fetch('library/page_header.lbi'); ?>
       <div class="l_con">
	        <div class="right_posta">
            	<ul >
                	<li><a href="projects.php?act=browse">Browse training projects</a></li>
                </ul>
      		</div>
       		<table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-top:30px;border-collapse:collapse;border:none;border:solid #CCC 2px;">
  <tr>
    <td height="39"><span style="font-size:30px; font-weight:bold; margin-left:15px;"><?php echo sub_str($this->_var['tasklist']['subject'],80); ?></span></td>
    <td align="right"><span style="font-size:12px; margin-right:15px;"><?php echo $this->_var['tasklist']['proposalsNum']; ?> bids</span></td>
  </tr>
  <tr>
    <td height="30"><span style="font-size:12px;margin-left:15px;">Client:<a href="user.php?user_id=<?php echo $this->_var['tasklist']['user_id']; ?>"><?php echo $this->_var['tasklist']['user_name']; ?></a></span></td>
    <td align="right"><span style="font-size:12px; margin-right:15px;"><?php if ($this->_var['tasklist']['status'] == 0): ?>
			Not Published
			<?php elseif ($this->_var['tasklist']['status'] == 1): ?>
			Open
			<?php elseif ($this->_var['tasklist']['status'] == 2): ?>
			Awarded
			<?php elseif ($this->_var['tasklist']['status'] == 3): ?>
			Awarded
			<?php elseif ($this->_var['tasklist']['status'] == 4): ?>
			Awarded
			<?php else: ?>
			Closed
			<?php endif; ?></span></td>
  </tr>
  <tr>
    <td height="26"><span style="font-size:12px;margin-left:15px;"><?php echo $this->_var['tasklist']['city']; ?></span></td>
    <td align="right"><span style="font-size:12px; margin-right:15px;"><?php echo $this->_var['tasklist']['lefttime']; ?> left to bid</span></td>
  </tr>
</table>
<br />

        	<div class="lcl_proje_conleft" style=" width:1024px; background-color:#CCCCCC; ">
        		<div class="lcl_proje_conleft" style=" width:700px; margin-top:10px; margin-left:10px; margin-bottom:10px; ">
                    <b class="b1"></b><b class="b2 d1"></b><b class="b3 d1"></b><b class="b4 d1"></b>
					<div class="client">
					<span class="table_tt">Client's Listing descriptions:</span>
					<table id="table_kuang" width="660" align="center">
						<tr>
						<td style=" border:1px solid #CCCCCC; width:360px; vertical-align:top;">
								<div class="font20" >Special Request</div>							
								<p style=" padding-left:38px;font-size:12px;"><?php echo $this->_var['tasklist']['specialReq']; ?></p>							
								<div class="font20" >Content</div>
								<textarea style="width:320px; height:250px; border:none; text-indent:2em; font-size:14px; padding-left:5px; padding-right:5px;"><?php echo $this->_var['tasklist']['content']; ?></textarea>
													
						</td>
						
						<td style=" border:1px solid #CCCCCC; width: 300px; vertical-align:top;">
						
						<table>
							<tr >
								<td class="font20">Details</td>
							</tr>
							<tr style=" height:30px;">
								<td style="text-align:right; color:#0099CC;">Looking for:</td><td style="padding-left:10px;"><?php echo $this->_var['tasklist']['trainerType']; ?></td>
							</tr>
							<tr style=" height:30px;">
								<td style="text-align:right; color:#0099CC;">Training type:</td><td style="padding-left:10px;"><?php echo $this->_var['tasklist']['trainingType']; ?></td>
							</tr>
							<tr style=" height:30px;">
								<td style="text-align:right; color:#0099CC;">Number of clients in the group:</td><td style="padding-left:10px;"><?php echo $this->_var['tasklist']['friends']; ?></td>
							</tr>
							<tr style=" height:30px;">
								<td style="text-align:right; color:#0099CC;">How many training sessions:</td><td style="padding-left:10px;"><?php echo $this->_var['tasklist']['sessionType']; ?></td>
							</tr>
							<tr style=" height:30px;">
								<td style="text-align:right; color:#0099CC;">Length per session:</td><td style="padding-left:10px;"><?php echo $this->_var['tasklist']['lengthType']; ?></td>
							</tr>
							<tr style=" height:30px;">
								<td style="text-align:right; color:#0099CC;">City/Town:</td><td style="padding-left:10px;"><?php echo $this->_var['tasklist']['city']; ?></td>
							</tr>
						</table>
          				<!--<ul class="lcl_flexib">
                		<li><?php echo $this->_var['tasklist']['trainerType']; ?></li>
                    	<li><?php echo $this->_var['tasklist']['trainingType']; ?></li>
                    	<li><?php echo $this->_var['tasklist']['friends']; ?></li>
                    	<li><?php echo $this->_var['tasklist']['sessionType']; ?></li>
                    	<li><?php echo $this->_var['tasklist']['lengthType']; ?></li>
                    	<li><?php echo $this->_var['tasklist']['city']; ?></li>
                		</ul> -->
						
						</td>
						
						</tr>
					</table>
                		
						
               	  </div>
                    <b class="b4b d1"></b><b class="b3b d1"></b><b class="b2b d1"></b><b class="b1b"></b>

              	
                <div class="allbiank">
                <b class="b1"></b><b class="b2 d1"></b><b class="b3 d1"></b><b class="b4 d1"></b>
<div class="all_offers">
						<form enctype = "multipart/form-data" action="projects.php" method="post">
              			<div style="padding-top:10px; ">
              			<p class="lcl_ddiu02 font05" style="text-align:right; ">
							<span class="font20" style="padding-left:10px;" >
							All Offers
							</span>
							<span style="width:90px; float:right; padding-right:15px;">
							<input name="input" type="submit" class="lcl_bimcc" value="Sort"  />
							<input type="hidden" name="act" value="view_project" />  
							<input type="hidden" name="pid" value="<?php echo $this->_var['tasklist']['pid']; ?>" />
							<?php if ($this->_var['order'] == 'DESC'): ?>
							<input type="hidden" name="order" value="DESC" />
							<?php else: ?>
							<input type="hidden" name="order" value="ASC" />
							<?php endif; ?>
							</span>
							<span style="width:180px; float:right;">
              				<select id="sort_type" name="sort_type" class="l_bom02" style="padding-top:5px;">
							<option value="ppid" >Time Submitted</option> 					
							<option value="proposalSubject" >Proposal Subject</option> 
							</select>
              				</span>
							
						</p>
              			</div>  
						</form>
						<table width="100%">
							<tr>
								<td style="padding-left:10px;">
									Offer Price
								</td>
								<td>
									Subject line
								</td>
								<td>
									Date Submitted
								</td>
								<td>
									From Who
								</td>
							</tr>
							<?php $_from = $this->_var['proposalslist']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'value');if (count($_from)):
    foreach ($_from AS $this->_var['value']):
?>
							<tr>
								<td style="padding-left:10px;">
									$ <?php echo $this->_var['value']['approxPrice']; ?>
								</td>
								<td>
									<a href="projects.php?act=project_proposal&ppid=<?php echo $this->_var['value']['ppid']; ?>&pid=<?php echo $this->_var['value']['pid']; ?>">
									<?php echo $this->_var['value']['proposalSubject']; ?>
									<?php if ($this->_var['flag'] == 1): ?>
									(Phone:<?php echo $this->_var['value']['phoneNumber']; ?>)
									<?php endif; ?>
									<?php if ($this->_var['value']['awarded'] == 1): ?><img src="themes/default/images/prop_15.gif" /><?php endif; ?></a>
								</td>
								<td>
									<?php echo $this->_var['value']['proposaledDate']; ?>
								</td>
								<td>
									<a href="user.php?user_id=<?php echo $this->_var['value']['user_id']; ?>" >by <?php echo $this->_var['value']['user_name']; ?></a>
								</td>
							</tr>
							<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
							<tr>
							</tr>
						</table>
						
						
											
											
					</div>
					
                    <b class="b4b d1"></b><b class="b3b d1"></b><b class="b2b d1"></b><b class="b1b"></b>
					<div style="padding-right:10px;"><?php echo $this->fetch('library/pages.lbi'); ?></div>	
                    </div>
                    
				</div>
              		           	 	
				
			<form name="proposal_form" action="projects.php" method="post" onsubmit="return check_proposal();">
            	<div class="right_orange">
                	<b class="b_1"></b><b class="b_2 d_1"></b><b class="b_3 d_1"></b><b class="b_4 d_1"></b>
                	<div class="ri_neirong">
                    	<p class="orange_rig" style="text-align:center; padding-top:15px;">Client is willing to spend</p>
						<p class="orange_rig" style="text-align:center;"><?php echo $this->_var['tasklist']['budgetType']; ?></p>
                        <div class="rigbiaodan">
                        	<div class="font20">You Offer</div>
                            <div style="text-align:left; padding-left:15px;"><!--<input name="" type="text" style="background:url(themes/default/images/l_32.gif) no-repeat; width:198px; height:28px; border:none;" /> -->
					<span style="font-size:10px;">
					Training Type:
					</span>
					<select id="trainertype" name="addproposal[proposaledTrainingType]" style=" padding-top:5px;width:160px; height:28px;">
					<?php $_from = $this->_var['proposaledtrainingtype']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'value');if (count($_from)):
    foreach ($_from AS $this->_var['value']):
?>
					<option value="<?php echo $this->_var['value']['xid']; ?>" ><?php echo $this->_var['value']['proposaledTrainingType']; ?></option> 
					<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
					</select>
					<script>
						document.getElementById('trainertype').value = "<?php echo $this->_var['myproposal']['proposaledTrainingType']; ?>"
					</script>
					</div>
                        	<div style=" font-size:10px; text-align:left; padding-left:15px; padding-top:10px;">Approx price $ <input name="addproposal[approxPrice]" type="text" id="approx_price"  size="50" maxlength="255" class="form_text" style=" padding-top:5px;width:100px; height:20px;" value="<?php echo $this->_var['myproposal']['approxPrice']; ?>"/>  </div>
                      
					<div class="lcl_xinnav font20" style=" margin-top:10px;">
					<div>Phone Number</div>
                	<div  style=" text-align:left; margin-bottom:5px;">
					<input name="addproposal[phoneNumber]" type="text"  id="subject" style=" padding-top:5px; margin-bottom:5px; width:250px ; height:20px; " value="<?php echo $this->_var['myproposal']['phoneNumber']; ?>" maxlength="50"/>
					</div>
					</div>
					      
                    <div class="lcl_xinnav font20" style=" margin-top:10px;">
					<div>Offer Subject Line</div>
                	<div  style=" text-align:left; margin-bottom:5px;">
					<input name="addproposal[proposalSubject]" type="text"  id="subject" style=" padding-top:5px; margin-bottom:5px; width:250px ; height:20px; " value="<?php echo $this->_var['myproposal']['proposalSubject']; ?>" maxlength="50"/>
					</div>
					</div>
                            
                          <div class="fuxuank">
                          	<div class="font20">Other Details</div>
                            <div class="yijianxk_se">
                            	<textarea name="addproposal[proposal_content]" style=" margin:5px 15px; width:260px ; height:100px;" maxlength="2000" ><?php echo $this->_var['myproposal']['proposal_content']; ?></textarea>
                            </div>
                          </div>  
                            
                           <div class="an_Awarded" style="font-size:16px; font-weight:bold;"> 
						    <?php if ($this->_var['tasklist']['status'] == 1): ?>                         
                            <input name="input" type="submit" value="Submit Offer" style="background:url(themes/default/images/l_43.gif); width:217px; height:58px; line-height:58px; border:0; font-size:24px; color:#fff;"/>
							<?php elseif ($this->_var['tasklist']['status'] == 2): ?>
							Awarded
							<?php elseif ($this->_var['tasklist']['status'] == 3): ?>
							Awarded
							<?php elseif ($this->_var['tasklist']['status'] == 4): ?>
							Awarded
							<?php else: ?>
							Closed
							<?php endif; ?>
							<input type="hidden" name="act" value="act_proposal" />  
							<input type="hidden" name="pid" value="<?php echo $this->_var['tasklist']['pid']; ?>" />
                           </div> 
                            
                        </div>
                    </div>
                    <b class="b4b_1 d_1"></b><b class="b3b_1 d_1"></b><b class="b2b_1 d_1"></b><b class="b1b_1"></b>
                </div>
			</form>
			
            <!--<div class="lcl_jiant"><img src="themes/default/images/l_40.gif" /></div> -->
        </div>
    </div>


<div class="lcl_llin"></div>
<?php echo $this->fetch('library/page_footer.lbi'); ?>  

</body>
</html>
